package com.jia.lidao.network.http.request.impl;



import com.jia.lidao.Constans;
import com.jia.lidao.enity.LoginRespDTO;
import com.jia.lidao.network.http.request.AbstractRequest;

import org.apache.http.Header;

import java.lang.reflect.Type;
import java.util.List;

/**
 * 登录
 * 
 * Created by czhang on 17/12/15.
 */
public class LoginRequest extends AbstractRequest {

	/**
	 * 手机号
	 */
	private String mobile;
	/**
	 * 密码
	 */
	private String password;

	public LoginRequest(String mobile, String password) {
		this.mobile = mobile;
		this.password = password;
	}

	@Override
	public String getUrl() {
		return Constans.BASEURL + "/login/password";
	}

	@Override
	public void initRequestParams() {
		addParam("mobile", mobile);
		addParam("password", password);
	}

	@Override
	public List<Header> getHeaders() {
		return null;
	}

	@Override
	public Type getResultType() {
		return LoginRespDTO.class;
	}
}
